package ecmnext.business.assets;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupe Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */

/***************************************************************/
/*                       IMPORT SECTION                        */
/***************************************************************/

import javax.swing.*;
import ecmnext.server.gui.*;

/***************************************************************/
/*              StockSetupGui CLASS SECTION                    */
/***************************************************************/

/**
 * <p>Title: StockSetupGui</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */

public class StockSetupGui
    extends JPanel implements DisplayableNode {

  JLabel jLabel1 = new JLabel();

  private Stock stock;

  public StockSetupGui(Stock aStock) {
    super();
    this.stock = aStock;

    try {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

  public void setUneditable() {}

  public void setEditable() {}

  public JPanel getPanel() {
    return this;
  }

  public String toString() {
    return this.stock.getAssetName();
  }

  private void jbInit() throws Exception {
    jLabel1.setText("Nothing to parameter yet.");
    this.add(jLabel1, null);
  }

}
